package com.bgrconsulting.stockorderentry.service.converter.response;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.response.PreviewChangeEquityOrderResponse;

@XmlRootElement(name = "PreviewChangeEquityOrderResponse")
public class PreviewChangeEquityOrderResponseConverter {
	PreviewChangeEquityOrderResponse enity;
	
	public PreviewChangeEquityOrderResponseConverter(PreviewChangeEquityOrderResponse previewEquityOrderResponse) {
		enity = previewEquityOrderResponse;
	}
	
	@XmlElement(name = "equityOrderResponse")
	public EquityOrderResponseConverter getEquityOrderResponse() {
		EquityOrderResponseConverter equityOrderResponseConverter = new EquityOrderResponseConverter(enity.getEquityOrderResponse());
		return equityOrderResponseConverter;
	}
}
